﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.MODEL.FoundationModel;
using MINERP.DAL;

namespace MINERP.BLL.Common
{
    public class PaperTypeBLL
    {
        public static List<PaperType_Info> GetAllPaperType()
        {
            List<PaperType_Info> paperTypeList = new List<PaperType_Info>();
            using (newSampleYPDBEntities db = new newSampleYPDBEntities())
            {
                foreach (var pt in db.paperType.ToList())
                {
                    paperTypeList.Add(new PaperType_Info()
                    {
                        PaperTypeID = pt.PaperTypeID,
                        Name = pt.Name
                    });
                }
            }
            return paperTypeList;
        }  
    }
}
